<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
  <script>
    var obj = {};
    console.log(obj);

    var student = {
      name: 'zhangsan',
      age: 23,
      study: function () {
        console.log(this.name + '在学校');
      }
    }
    student.study();
    student.gender = '男';


    function Animal() {
      this.id = '1';
      this.name = 'zhangsan';
      this.age = '23';
      this.run = function () {
        console.log(this.name + '在奔跑');
      }
    }

    var cat = new Animal();
    cat.run();
  </script>
</body>
</html>
